﻿<?php // no direct access
defined('_JEXEC') or die('Restricted access'); 
$empty = "Chưa cập nhật";
?>
<div class="titleLikeBook"><em>Sách được yêu thích</em> </div>
<table class="listLikeBook">
<?php
foreach($listbook as $book) 
{
	?>
	<tr>
		<td><a href="index.php?option=com_content&view=article&id=11&masach=<?php echo $book['0'] ?>&luotxem=<?php echo $book['10'] ?>" title="<?php echo $book['2']; ?>" ><img src="<?php echo $book['3']; ?>" title="<?php echo $book['2']; ?>" /></a></td>
		<td>
			<span class="like">Lượt xem:</span><strong><?php echo $book['10']; ?></strong>
			<br/>
			<a href="index.php?option=com_content&view=article&id=11&masach=<?php echo $book['0'] ?>&luotxem=<?php echo $book['10'] ?>"><?php if($book['2'] == null) { echo $empty ; } else {echo $book['2']; } ?></a>
		</td>
	</tr>
	<?php
}
?>
</table>

